﻿using Taobao.Top.Api.Request;

namespace Taobao.ObjectModel.Request
{
    public class RequestFactory
    {
        public static OnSaleItemsRequestWrapper CreateItemsOnsaleRequest(RequestOption requestOption, bool hasShowCase)
        {
            var request = new ItemsOnsaleGetRequest
            {
                Fields = requestOption.Fields,
                OrderBy = requestOption.OrderBy,
                PageSize = requestOption.PageSize,
                HasShowcase = hasShowCase
            };

            return new OnSaleItemsRequestWrapper(request);
        }
    }
}
